from flask import Blueprint

from table.datamanage import create_user, create_tables

db_user_bp = Blueprint('dbuser', __name__)


@db_user_bp.route('/create_table')
def create_table_route():
    create_tables()
    return 'Table created!'


@db_user_bp.route('/insert_user')
def create_user_route():
    create_user('example', 'example@example.com')
    return 'User created!'
